package oktx.sample.dubbo;

import oktx.JtaTransaction;
import oktx.sample.dubbo.model.Book;
import oktx.sample.dubbo.model.Shop;

import java.util.List;

/**
 * Created by dave on 18-5-20 上午11:16.
 */
public interface ShopApi {
    @JtaTransaction
    Shop addShop(Shop shop);

    List<Shop> getShops();

    @JtaTransaction
    void removeAllShops();

    @JtaTransaction
    Book restock(Book book, PostType type);
}
